package astudy.bytecode;

public class NamePattern {

	private String pattern;
	
	public NamePattern(String pattern) {
		this.pattern = pattern;
	}
	
	public boolean match(String name) {
		
		if (pattern == null) {
			return true;
		} else {
			return pattern.equals(name);
		}
	}
}
